package com.mccken.designpattern.chain.base.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2024-02-16 14:12
 **/
@Service
public class McckenChainClient {
	
	@Autowired
	private LoginChainFactory loginChainFactory;
	public void login() {
		LoginChainContext loginContext = new LoginChainContext();
		loginChainFactory.buildLoginHandleChain().doHandle(loginContext);
	}
	
}
